package com.ctcemti.mdm.framework.filter;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import java.io.IOException;


/**
 * 自定过滤器
* <p>Title: CustomFilter</p>  
* <p>Description: </p>  
* @author bxf  
* @date 2019年5月5日
 */

@Component
public class CustomFilter implements Filter {

	private static final String XML_HTTP_REQUEST = "XMLHttpRequest";//ajax请求标记

	@Override
	public void destroy() {
		
	}

	@Override
	public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2)
			throws IOException, ServletException {
		arg2.doFilter(arg0, arg1);//request--response分界线

	}

	@Override
	public void init(FilterConfig arg0) throws ServletException {
		
	}


}
